#include "goodsoperatewindow.h"
#include "ui_goodsoperatewindow.h"
#include"managewindow.h"
#include<QListWidgetItem>
#include<QDebug>
#include "saleswindow.h"
#include "goodspurchasingwindow.h"
#include "goodsbuyinlogwindow.h"
goodsOperateWindow::goodsOperateWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::goodsOperateWindow)
{
    ui->setupUi(this);
}

goodsOperateWindow::~goodsOperateWindow()
{
    delete ui;
}

void goodsOperateWindow::on_returnButton_clicked()
{
  QWidget *before= this->parentWidget();

  manageWindow *m1=dynamic_cast<manageWindow *>(before);

  m1->show();
  this->close();

}

void goodsOperateWindow::on_pushButton_clicked()
{

    salesWindow *s1=new salesWindow(this);
    s1->show();
    this->hide();




}

void goodsOperateWindow::on_buyinButton_2_clicked()
{
    goodsPurchasingWindow *gp1=new goodsPurchasingWindow(this);
    gp1->show();
    this->hide();
}

void goodsOperateWindow::on_buyinDetailButton_3_clicked()
{
    goodsBuyinLogWindow *gw=new goodsBuyinLogWindow(this);
    gw->show();
    this->hide();
}
